package com.abel.domain.types;


public enum EducationType {

	HSC("HSC", "High School"),
	COL("COL", "College"),
	ADV("ADV", "Special/Advanced Education");
	
	private String educationTypeCode;
	
	private String educationTypeDesc;
	
	private EducationType(String educationTypeCode, String educationTypeDesc) {
		
		this.educationTypeCode = educationTypeCode;
		this.educationTypeDesc = educationTypeDesc;
	}
	
	
	
	
	/**
	 * @return the educationTypeCode
	 */
	public String getEducationTypeCode() {
		return educationTypeCode;
	}




	/**
	 * @return the educationTypeDesc
	 */
	public String getEducationTypeDesc() {
		return educationTypeDesc;
	}



	
	public static String getEducationTypeDesc(String educationTypeCode) {
		
		if (educationTypeCode != null) {
			
			for (EducationType educationType : EducationType.values()) {
				if (educationType.getEducationTypeCode().equals(educationTypeCode) ) {
					return educationType.getEducationTypeDesc();
				}
			}
		}
		return null;
	}
}
